// pages/Z  C/Z  C.js
var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    integral:'',//积分数量
    array:[
      {src:'cloud://banmanshop.6261-banmanshop-1301943798/product.png',title:'产品名称烧到打击你你你你产品名称烧到打击你你你你',price:210,zc:189},
      {src:'cloud://banmanshop.6261-banmanshop-1301943798/product.png',title:'产品名称烧到打击你你你你产品名称烧到打击你你你你',price:210,zc:189},
      {src:'cloud://banmanshop.6261-banmanshop-1301943798/product.png',title:'产品名称烧到打击你你你你产品名称烧到打击你你你你',price:210,zc:189},
      {src:'cloud://banmanshop.6261-banmanshop-1301943798/product.png',title:'产品名称烧到打击你你你你产品名称烧到打击你你你你',price:210,zc:189},
    ],
    array2:[
      {detailImg:'cloud://banmanshop.6261-banmanshop-1301943798/product1.png',title:'产品名称烧到打击你你你你产品名称烧到打击你你你你gdfgkkokokokodfg',zc:189},
      {detailImg:'cloud://banmanshop.6261-banmanshop-1301943798/product2.png',title:'产品名称烧到打击你你你你产品名称烧到打击你你你你gdfgdmoijoifg',zc:189},
      {detailImg:'cloud://banmanshop.6261-banmanshop-1301943798/product1.png',title:'产品名称烧到打击你你你你产品名称烧到打击你你你你gdfgninodfg',zc:189},
      {detailImg:'cloud://banmanshop.6261-banmanshop-1301943798/product2.png',title:'产品名称烧到打击你你你你产品名称烧到打击你你你你gdfgniudfg',zc:189}

    ]
  },
  // 跳转“买入”页面
  toBuy(){
    wx.navigateTo({
      url: '/pages/buy/buy',
    })
  },
  //跳转“卖出”页面
  toSell(){
    wx.navigateTo({
      url: '/pages/sell/sell',
    })
  },
  // 跳转“明细”页面
  toDetailed(){
    wx.navigateTo({
      url: '/pages/detailed/detailed',
    })
  },
  // 跳转“任务包”页面
  toTask(){
    wx.navigateTo({
      url: '/pages/task/task',
    })
  },
  //跳转到“我的任务”页面
  toMyTask(){
    wx.navigateTo({
      url: '/pages/myTask/myTask',
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that=this
    wx.request({
      url: app.globalData.baseUrl + '/integral/findUserIntegral',
      data:{
        xcxOpenId: app.globalData.xcxOpenId
      },
      success(res){
        var data=res.data.data
        that.setData({integral:data})
      }
    })
  }
})